import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
    
    
    {
    path:'/',
    component:()=> import('../views/Home/index.vue'),
    redirect:'list',
    children:[
       {
           name:'list',
        path:'/list',
        component:()=> import('../views/List/index.vue'),
       },
       {
        path:'/detail',
        component:()=>import('../views/Detail/index.vue'),

       },
       
    ]

    
},





]
  
  const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
  })
  
  export default router
  

